
package at.ac.tuwien.infosys.aic11.dto;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "warrentor")
@XmlAccessorType(XmlAccessType.NONE)
public class Warrantor extends InternalCustomer {
	
	@XmlElementWrapper(name = "credit_requests_as_warrentor")
	@XmlElement(name = "credit_request_as_warrentor", required=false)
	private List<Long> creditRequestsAsWarentor = new ArrayList<Long>();

	public Warrantor(int i, String fn, String mn, String ln,
			BigDecimal ob, Address adr, DisbursementPreference dp) {
		super(i, fn, mn, ln, ob, adr, dp);
	}
	
	public Warrantor(){
		super();
	}
	
	
	public List<Long> getCreditRequestsAsWarentor() {
		return creditRequestsAsWarentor;
	}

	public void setCreditRequestsAsWarentor(List<Long> creditRequests) {
		this.creditRequestsAsWarentor = creditRequests;
	}
	
	public void addCreditRequestAsWarentor(Long c){
		this.creditRequestsAsWarentor.add(c);
	}
	


}
